package top.infopub.mgr.mkt.service;

import com.github.pagehelper.Page;
import top.infopub.generic.GenericService;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.mgr.mkt.domain.BidCurrencyDomain;
import top.infopub.mgr.mkt.jsonvo.BidAnalysisJsonVo;
import top.infopub.mgr.mkt.vo.BidCurrencyVo;
import top.infopub.model.mkt.BidAnalysis;
import top.infopub.model.mkt.BidInfo;
import top.infopub.model.mkt.BidReq;
import top.infopub.model.mkt.ProjectAttachment;
import top.infopub.model.om.PaymentApply;
import top.infopub.model.om.PaymentApplyDetail;
import top.infopub.security.vo.AuthorizationVO;

import java.util.List;

public interface BidAnalysisService extends GenericService<BidAnalysis, String> {
    Page<BidCurrencyDomain> selectPage(Page<BidCurrencyDomain> page, BidCurrencyVo bidCurrencyVo);

    /**
     * 根据id查询投标文件分析详情
     * @param id
     * @return
     */
    BidAnalysisJsonVo queryDetailById(String id);

    /**
     * 编辑招标文件分析详情
     * @param bidInfo
     * @param paymentApply
     * @param paymentApplyDetail
     * @param attachmentList
     * @param vo
     * @param submitType
     * @return
     */
    RspVo editDetail(BidAnalysis bidAnalysis, BidInfo bidInfo, List<BidReq> yjList, List<BidReq> jxList,
                     List<BidReq> ryList, PaymentApply paymentApply, PaymentApplyDetail paymentApplyDetail,
                     List<ProjectAttachment> attachmentList, AuthorizationVO vo, Integer submitType);

    BidAnalysis queryByProCode(String proCode);
}
